package cn.exrick.xboot.config.custom;

import lombok.Getter;
import lombok.Setter;

/**
 * @ClassNameCustomPage
 * @Description
 * @Author yck
 * @Date2020-07-28 15:07
 * @Version V1.0
 **/

public class CustomPage {
    @Getter@Setter
    private Long pageNumber;
    @Getter@Setter
    private Long pageSize;
    @Getter@Setter
    private Long totalRows;
    @Getter@Setter
    private Long totalPages;
    @Getter@Setter
    private Object resultData;
    @Setter
    private long firstRow;
    @Setter
    private long lastRow;

    public long getFirstRow() {
      long ff=  pageSize*(pageNumber-1);
        return ff;
    }

    public long getLastRow() {
        long ll=  pageSize*(pageNumber);
        return ll;
    }
}
